package cn.rokhdelar.ams.management.domain.query;

import cn.rokhdelar.ams.common.domain.query.PageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 公告查询Query实体
 * @author Rokhdelar
 * @since 2025/04/29
 */

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(title = "公告查询Query",description = "用于封装公告模块的查询条件")
public class AnnouncementQuery extends PageQuery {
    @Schema(title = "标题",description = "用于根据公告标题模糊查询")
    private String title;

    @Schema(title = "发布状态",description = "用于根据状态查询")
    private Boolean published;

    @Schema(title = "公告开始时间",description = "公告开始时间")
    private LocalDateTime startDateTime;

    @Schema(title = "公告结束时间",description = "公告结束时间")
    private LocalDateTime endDateTime;
}
